<extend name="Public:layout"/>
<block name="content">
    <div class="panel admin-panel">
        <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>管理员信息</strong></div>
        <div class="body-content">
            <form method="post" class="form-x ajax-submit" action="{:U('edit')}">
                <input type="hidden" name="role_id" value="{$info.role_id}">
                <div class="form-group">
                    <div class="label">
                        <label>用户名称：</label>
                    </div>
                    <div class="field">{$user_info.user_login}</div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>角色</label>
                    </div>
                    <div class="field">
                        <select name="role_id" class="input w50">
                            <foreach name="role_list" item="vo">
                                <option value="{$vo.role_id}" <eq name="vo.role_id" value="$role_info['role_id']">selected</eq>>{$vo.role_name}</option>
                            </foreach>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>状态：</label>
                    </div>
                    <div class="field">
                        <select name="status" class="input w50">
                            <option value="1">正常</option>
                            <option value="0">禁用</option>
                        </select>
                        <div class="tips" title=""></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <input type="hidden" name="user_id" value="{$user_info.user_id}">
                        <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</block>